﻿// TOCPane.cpp: 实现文件
//

#include "stdafx.h"
#include "zChecker.h"
#include "TOCPane.h"


// CTOCPane

IMPLEMENT_DYNAMIC(CTOCPane, CDockablePane)

CTOCPane::CTOCPane()
{

}

CTOCPane::~CTOCPane()
{
}


BEGIN_MESSAGE_MAP(CTOCPane, CDockablePane)
	ON_WM_CREATE()
	ON_WM_SIZE()
	ON_WM_CONTEXTMENU()
END_MESSAGE_MAP()



// CTOCPane 消息处理程序




int CTOCPane::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
	if (CDockablePane::OnCreate(lpCreateStruct) == -1)
		return -1;

	// TODO:  在此添加您专用的创建代码
	CRect rectDummy;
	rectDummy.SetRectEmpty();
	// 创建选项卡窗口:
	if (!m_wndTocForm.Create(IDD_FORM_TOC, this))
	{
		TRACE0("未能创建TOC窗口/n");
		return -1;
	}
	m_wndTocForm.ShowWindow(SW_SHOW);

	return 0;
}


void CTOCPane::OnSize(UINT nType, int cx, int cy)
{
	CDockablePane::OnSize(nType, cx, cy);

	// TODO: 在此处添加消息处理程序代码
	m_wndTocForm.SetWindowPos(this, 0, 0, cx, cy, SWP_NOMOVE | SWP_NOACTIVATE | SWP_NOZORDER);
	m_wndTocForm.ShowWindow(SW_SHOW);
}


void CTOCPane::OnContextMenu(CWnd* /*pWnd*/, CPoint /*point*/)
{
	// TODO: 在此处添加消息处理程序代码
}
